package com.start.autumn.constant;

import com.start.autumn.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
public enum ResponseCodeEnum implements BaseEnum {
    OK(0, "成功"),
    FAIL(1, "失败"),
    ;

    public Integer code;
    public String message;

    ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getErrMessage() {
        return message;
    }
}
